Skip to content

feat(api): sanitize and normalize user-supplied request fields#83

Open
Properprogress1 wants to merge 15 commits intoLiquifact:mainfrom
Properprogress1:feature/input-sanitization-pipeline
Open

feat(api): sanitize and normalize user-supplied request fields#83
Properprogress1 wants to merge 15 commits intoLiquifact:mainfrom
Properprogress1:feature/input-sanitization-pipeline

Conversation

@Properprogress1
Copy link
Copy Markdown

closes #15 Add Input Sanitization for User-Supplied Fields

Summary
Adds a centralized input sanitization pipeline for user-supplied body, query, and params, with normalization and dangerous-key filtering before request handling.

Changes
Added sanitization utilities and middleware
Wired middleware into app request flow
Added dangerous payload + normalization tests
Updated README with security assumptions and pipeline behavior

Validation
npm test -- --runInBand passed
npm run test:coverage -- --runInBand passed (>95% lines/statements)

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 26, 2026

@Properprogress1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@mikewheeleer
Copy link
Copy Markdown
Contributor

Resolve the conflicts & revert the changes in package-lock.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Input Sanitization for User-Supplied Fields

2 participants